VPATH = ../lib
.PHONY: clean $(VPATH) run 

app: main.a $(VPATH)
	g++ -o app  main.a $(VPATH)/f.a

main.a: main.cc head.h
	g++ -c -o main.a main.cc

$(VPATH): 
	$(MAKE) -C $@

clean: 
	-rm -f *.o *.a app
	-@cd $(VPATH); make clean

run:
	@echo "------Run ./app------"
	@./app
	
